#ifndef __BOARD_INIT_H
#define __BOARD_INIT_H

#include "FreeRTOS.h"
#include "main.h"
#include "cmsis_os.h"
#include "task.h"
#include "usart.h"
#include <stdio.h>
#include <string.h>
//#include "adc.h"
//#include "tim.h"
#include "dma.h"
//#include "ax_oled.h"
#include "sbus_parser.h"
#include "bsp_can_core.h"           //can总线初始化

#define TIM_LOOP_MARK 10000 // 重载计数器用于麦轮,起始基准值 方便计算倒转时不会反向0~65535溢出

void Board_Init(void);
void BuzzerBeep(uint8_t times);
void LedRedBlink(uint8_t times);
void LedGreenBlink(uint8_t times);
float ADC_ToVoltage(uint16_t adc_value);
float GetBatteryVoltage();
void Board_Detect_Loop();
extern SBUS_Parser sbus_parser; /// 声明一个sbus解析器对象

#endif